function getSearch() {
  var search = location.search
  search = search.replace('?','')
  var arr = search.split('=')
  var obj = {}
  obj[arr[0]] = arr[1]
  console.log(obj)
  return obj
} 
function getSearch() {
  var search = location.search
  search = decodeURI(search)
  search = search.slice(1)
  var arr = search.split('&')
  var obj = {}
  for( var i = 0 ; i < arr.length ; i++) {
    var key = arr[i].split('=')[0]
    var value = arr[i].split('=')[1]
    obj[key] = value
  }
  console.log(obj)
  return obj
}